﻿@model WarOfDev.EF.Developer
@{
    ViewBag.Title = "Edit";
}
<h2>
    Edit</h2>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Developer</legend>
        @Html.HiddenFor(model => model.Id)
        <div class="editor-label">
            @Html.LabelFor(model => model.DomainAccount)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DomainAccount)
            @Html.ValidationMessageFor(model => model.DomainAccount)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.TrueName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TrueName)
            @Html.ValidationMessageFor(model => model.TrueName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.NickName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NickName)
            @Html.ValidationMessageFor(model => model.NickName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.IsLocked)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsLocked)
            @Html.ValidationMessageFor(model => model.IsLocked)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.CreatedBy)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.CreatedBy, new { @readOnly = "readOnly" })
            @Html.ValidationMessageFor(model => model.CreatedBy)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.CreatedOn)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.CreatedOn, new { @readOnly = "readOnly" })
            @Html.ValidationMessageFor(model => model.CreatedOn)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.ModifiedBy)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.ModifiedBy, new { @readOnly = "readOnly" })
            @Html.ValidationMessageFor(model => model.ModifiedBy)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.ModifiedOn)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.ModifiedOn, new { @readOnly = "readOnly" })
            @Html.ValidationMessageFor(model => model.ModifiedOn)
        </div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
